<?php

namespace App\Http\Controllers\TK_Api;

use App\Http\Controllers\RestfulBaseController;
use App\Models\User;
use Auth;

class ApiBaseController extends RestfulBaseController
{
    protected $user;

    public function __construct()
    {
        try {
            if (Auth::guard('api')->check())
                $this->user = Auth::guard('api')->user();
            else $this->user = null;
        }catch (\Exception $e) {
            $this->user = null;
        }
    }
}
